package com.dingreading.cloud.mall.service.impl;

import com.dingreading.cloud.mall.entity.Staff;
import com.dingreading.cloud.mall.entity.table.StaffTableDef;
import com.dingreading.cloud.mall.mapper.StaffMapper;
import com.dingreading.cloud.mall.service.StaffService;
import org.springframework.stereotype.Service;

/**
 *  服务层实现。
 *
 * @author Administrator
 * @since 2024-10-29
 */
@Service
public class StaffServiceImpl extends BaseServiceImpl<StaffMapper, Staff, StaffTableDef> implements StaffService {

    @Override
    protected StaffTableDef getTable() {
        return StaffTableDef.staff;
    }

    @Override
    public Staff getByUid(String uid) {
        return getMapper().selectOneByCondition(table.uid.eq(uid));
    }

}
